package com.dragon.service;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.dragon.pojo.Problem.Problem;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

import java.util.concurrent.CompletableFuture;

@Service
public interface DashScopeService {

    Flux<String> smartAnalysis(Integer recordId);

    CompletableFuture<Problem> smartSetQuestion(String text) throws NoApiKeyException, InputRequiredException, InterruptedException;
}
